package com.example.hangtianwen.ceshi;

import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Button;
import android.widget.ListView;

import java.util.ArrayList;
import java.util.List;

import io.vov.vitamio.Vitamio;

public class MainActivity extends AppCompatActivity {

    private ListView listView;
    private List<Uri> uriList=new ArrayList<>();
    private io.vov.vitamio.widget.VideoView videoView;
    private Button btn;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Vitamio.isInitialized(this);

        videoView = ((io.vov.vitamio.widget.VideoView) findViewById(R.id.videoview));



        videoView.setVideoPath("http://qiubai-video.qiushibaike.com/WD320JJXEJ9W15IP_3g.mp4");


                videoView.start();



    }


}
